<template>
  <el-form
    :model="form"
    label-width="120px"
    class="pms-details"
    size="mini"
    disabled
    :inline="true"
    :rules="rules"
  >
    <el-form-item label="项目名称：" class="prj-name" prop="prjName">
      <el-input v-model="form.prjName" :title="form.prjName || ''" />
    </el-form-item>
    <el-form-item label="项目年份：" prop="prjYear">
      <el-date-picker v-model="form.prjYear" type="year" />
    </el-form-item>
    <el-form-item label="预算编码：" prop="budgetCode">
      <el-input v-model="form.budgetCode" />
    </el-form-item>
    <el-form-item label="项目类型：" prop="prjType">
      <el-select v-model="form.prjType" placeholder="">
        <el-option v-for="items in selectList.PROJ_TYPE" :key="items.dictId" :label="items.dictName" :value="items.dictId" />
      </el-select>
    </el-form-item>
    <el-form-item label="信息化分类：" prop="secondaryType">
      <el-select v-model="form.secondaryType" placeholder="">
        <el-option v-for="items in selectList.SECONDARY_TYPE" :key="items.dictId" :label="items.dictName" :value="items.dictId" />
      </el-select>
    </el-form-item>
    <el-form-item label="建设方式：" prop="buildModes">
      <el-select v-model="form.buildModes" placeholder="">
        <el-option v-for="items in selectList.BUILD_MODES" :key="items.dictId" :label="items.dictName" :value="items.dictId" />
      </el-select>
    </el-form-item>
    <el-form-item label="项目总预算(元)：" prop="totalCost">
      <el-input v-model="form.totalCost" />
    </el-form-item>
    <el-form-item label="建设单位：" prop=" orgName">
      <el-input v-model="form.orgName" />
    </el-form-item>
    <el-form-item label="建设单位承办部门：" prop="createDepartmentName">
      <el-input v-model="form.createDepartmentName" />
    </el-form-item>
    <el-form-item label="立项申请人：" prop="isReceiveName">
      <el-input v-model="form.isReceiveName" />
    </el-form-item>
    <el-form-item label="项目经理：" prop="projectManager">
      <el-input v-model="form.projectManager" />
    </el-form-item>
    <el-form-item label="项目编码：" prop="prjCode">
      <el-input v-model="form.prjCode" />
    </el-form-item>
    <el-form-item label="立项批复文号：" prop="appNo">
      <el-input v-model="form.appNo" />
    </el-form-item>
    <el-form-item label="立项批复时间：" prop="appTime">
      <el-date-picker v-model="form.appTime" type="datetime" />
    </el-form-item>
    <el-form-item label="备注：" prop="remarks">
      <el-input v-model="form.remarks" />
    </el-form-item>
    <el-form-item label="主要内容：" class="pms-main-content" prop="constructionContent">
      <el-input v-model="form.constructionContent" type="textarea" resize="none" />
    </el-form-item>
  </el-form>
</template>

<script>

export default {
  name: 'Prjbasedetail',
  props: ['selectList', 'form'],
  data() {
    return {
      rules: {
        projectManager: [
          { required: true, message: '请选择项目经理', trigger: 'blur' }
        ]
      }
    }
  },
  methods: {
  }
}
</script>
